/*
 * Copyright (c)  2020,  DataPipeline
 * All rights reserved.
 *
 * Id:SampleUpdateTimeBuilder.java   2020-07-18 20:57 wanglijun
 */
package cn.datacare.orm.annotation.builder;

import cn.datacare.orm.database.TableDesc;
import cn.datacare.orm.dialect.AbstractDialect;

import java.lang.annotation.Annotation;

/**
 * <p>
 * Title:  SampleUpdateTimeBuilder
 * </p>
 * <p>
 * Description: 返回一个Beetl函数，参考
 * </p>
 * <p>
 * Copyright: Copyright (c) 2020
 * </p>
 * <p>
 * Company/Department: DataPipeline
 * </p>
 *
 * @author wanglijun
 * @version 1.0
 * @since 2020-07-18 20:57
 */
public class SampleUpdateTimeBuilder implements AttributePersistBuilder {


    /***
     * 生成SQL代码
     * @param dialect 数据库类型
     * @param fieldName 字段
     * @param colName 列表名
     * @param annotation 注解
     * @param tableDesc 表描述
     * @return
     */
    @Override
    public String toSql(AbstractDialect dialect, String fieldName, String colName, Annotation annotation, TableDesc tableDesc) {
        return BuilderConstants.FN_DATE;
    }
}
